These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
| #!/usr/bin/env bash | |
| # Download VMware Workstation for Linux | |
| # Handles legacy versions (12.x - 17.6.3) from Cloudflare CDN cache and | |
| # newer versions (17.6.4+) from Archive.org. | |
| # | |
| # Use '-k' to keep the CDN download file compressed, exiting after download. (Ignored for v17.6.4+) | |
| # Use '-v <Version>' to specify desired version directly. | |
| BASE_URL="https://softwareupdate-prod.broadcom.com/cds/vmw-desktop/" |
| if (window.location.origin !== "https://www.instagram.com") { | |
| window.alert( | |
| "Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.", | |
| ); | |
| window.location.href = "https://www.instagram.com"; | |
| console.clear(); | |
| } | |
| const fetchOptions = { | |
| credentials: "include", |
| #!/bin/bash | |
| # | |
| # This script will get an SSH host certificate from our CA and add a weekly | |
| # cron job to rotate the host certificate. It should be run as root. | |
| # | |
| # See https://smallstep.com/blog/diy-single-sign-on-for-ssh/ for full instructions | |
| CA_URL="[Your CA URL]" | |
| # Obtain your CA fingerprint by running this on your CA: |
| # wipefs removes all filesystem signatures from the disk, including partition tables. | |
| # This does not overwrite the actual data but removes metadata so the disk appears unformatted. | |
| # If you want to securely wipe the disk, use a method like dd or blkdiscard. | |
| sudo wipefs --all /dev/nvme0n1 | |
| Using fdisk to prepare your disk for Arch Linux installation involves partitioning the disk as per your notes. Here’s a step-by-step guide: | |
| Step 1: Start fdisk | |
| Run fdisk on the target disk (e.g., /dev/sda): |
These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
| ####################### INSTALLING GCC 4.6.3( OPTIONAL AND NOT RECOMMENDED! SKIP THIS ) ####################### | |
| mkdir -p /opt/gcc-4.6/ | |
| cd /opt/gcc-4.6/ | |
| wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.gz | |
| tar -xvf gcc* | |
| cd gcc-4.6.3/ | |
| # we need to make some changes to get this running on new linux | |
| # I have conveniently made some patches for you | |
| # https://gist.github.com/LWSS/fae2d3c34205dc0074ddd9ed767e7e99 |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| package main | |
| // Usage: | |
| // copy this code to https://replit.com/languages/go | |
| // and change the encrypted_password variable below (see comments below for steps to acquite the encrypted password) | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/base64" |